package rt.crashmere.sdk.utils;

import cn.hutool.crypto.digest.DigestUtil;

/**
 * 签名工具类
 *
 * @author Lwh
 * @time 2023/01/22 21:54
 */
public class SignUtils {

    public static String genSign(String secretKey, String... params) {
        StringBuilder body = new StringBuilder();
        for (String param : params) {
            body.append(param).append(".");
        }
        return DigestUtil.sha256Hex(body + secretKey);
    }

}
